package com.nativetalk.dao;

import com.nativetalk.bean.Bill;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

@MyBatisRepository
public interface BillDao {
    int insert(@Param("pojo") Bill pojo);

    int insertSelective(@Param("pojo") Bill pojo);

    int insertList(@Param("pojos") List<Bill> pojo);

    int update(@Param("pojo") Bill pojo);

    Bill getByOrderNo(String orderNo);

    void updatePaymentStatus(@Param("orderNo") String orderNo, @Param("paymentStatus") Integer paymentStatus);

    Long findByMembIdCount(Integer memb_id);

    List<Bill> findByMembId(RowBounds rowBounds, Integer memb_id);
}
